import 'package:flutter/material.dart';
import "./form.dart";

class SearchPage extends StatefulWidget {
  const SearchPage({super.key});

  @override
  State<SearchPage> createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('搜索'),
      ),
      body: Column(
        children: [
          ElevatedButton(
            onPressed: () {
              // TODO 命名路由跳转,并传值
              Navigator.pushNamed(
                context,
                '/form',
                arguments: {'title': 'form2', 'aid': '222222222'},
              );
            },
            child: const Text('跳转Form页面'),
          ),
        ],
      ),
    );
  }
}
